package com.demo.dao.impl;

import com.demo.dao.UserDao;
import com.demo.entity.User;

public class UserDaoImpl implements UserDao {

	public String query() {
		return "succes";
	}

	public void save(User user) {
		if(user!=null){
			System.out.println("保存成功");
		}else{
			System.out.println("保存失败");
		}
	}
	
	//资源初始化
	public void init(){
		System.out.println("初始化资源");
	}
	
	//销毁资源
	public void destory(){
		System.out.println("销毁资源");
	}
	
}
